@extends('layouts.app')

@section('title','ActivitiesOrderEdit')

@section('content')
<div class="container">
        <div class="row">
            
            <a class="create-return" href="{{ route('activityOrder.index')}}">
                <span><i class="fa fa-chevron-circle-left fa-2x" aria-hidden="true"></i></span>
                <span>返回</span>
            </a>
             <div class="create">
                    <div class="create-title">编辑活动订单信息</div>
                    {!! Form::model($activityOrder, ['action' => ['ActivityOrderController@update',$activityOrder->id], 'files' => true]) !!}
                    <input name="_method" type="hidden" value="PATCH">
                    {{ csrf_field() }}
                    <div class="create-list{{ $errors->has('activity_name')?'has-error':'' }}">
                        {!! Form::label('activity_name','活动名称:')!!}
                        {!! Form::text('activity_name',null)!!}
                        @if ($errors->has('activity_name'))
                            <span class="help-block">
                                <strong>{{ $errors->first('activity_name') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="create-list{{ $errors->has('activity_price')?'has-error':'' }}">
                        {!! Form::label('activity_price','活动价格:')!!}
                        {!! Form::text('activity_price',null) !!}
                        @if ($errors->has('activity_price'))
                            <div class="help-block">
                                <strong>{{ $errors->first('activity_price') }}</strong>
                            </div>
                        @endif
                    </div>
                    <div class="create-list{{ $errors->has('username')?'has-error':'' }}">
                       {!! Form::label('username','购买用户名:') !!}
                        {!! Form::text('username',null) !!}
                        @if ($errors->has('username'))
                            <span class="help-block">
                                <strong>{{ $errors->first('username') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="create-list{{ $errors->has('counts')?'has-error':'' }}">
                        {!! Form::label('counts','购买数量:') !!}
                        {!! Form::text('counts',null) !!}
                        @if ($errors->has('counts'))
                            <span class="help-block">
                                <strong>{{ $errors->first('counts') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="create-list{{ $errors->has('phone')?'has-error':'' }}">
                        {!! Form::label('phone','参加人数:') !!}
                        {!! Form::text('phone',null) !!}
                        @if ($errors->has('phone'))
                            <span class="help-block">
                                <strong>{{ $errors->first('phone') }}</strong>
                            </span>
                        @endif
                    </div>
                    
                    <div class="create-list{{ $errors->has('rules')?'has-error':'' }}">
                        {!! Form::label('rules','活动注意:') !!}
                        {!! Form::textarea('rules',null) !!}
                        @if ($errors->has('rules'))
                            <span class="help-block">
                                <strong>{{ $errors->first('rules') }}</strong>
                            </span>
                        @endif
                    </div>
                    {!! Form::submit('更新活动信息',['class'=>"btn btn-success"]); !!}
                    {!! Form::close() !!}  
                    </div>
                </div>          
                </div>
                <div id="debug"></div>
        </div>
    </div>
@endsection
